package com.lsz.crm.mapper;

import com.lsz.crm.base.BaseMapper;
import com.lsz.crm.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface RoleMapper extends BaseMapper<Role,Integer> {

    // 查询⻆⾊列表
    public List<Map<String,Object>> queryAllRoles(Integer userId);

    //  根据角色名查询角色记录
    Role queryRoleByRoleName(String roleName);
}